<?php
/**
 * Created by PhpStorm.
 * User: dungnt13
 * Date: 12/3/14
 * Time: 4:19 PM
 */
Event::listen('generic.event', function ($client_data) {
    return BrainSocket::message('generic.event', array('message' => 'A message from a generic event fired in Laravel!'));
});

Event::listen('app.success', function ($client_data) {
    return BrainSocket::success(array('There was a Laravel App Success Event!'));
});

Event::listen('app.error', function ($client_data) {
    return BrainSocket::error(array('There was a Laravel App Error!'));
});